package a.j;

import java.awt.*;

public abstract class n
  implements md.t_
{
  private Color a;
  private Stroke b;
  private Paint c;
  private static final double d = 0.7D;
  public static int e;
  
  public void a(ld paramld, Graphics2D paramGraphics2D)
  {
    b(paramld, paramGraphics2D, false);
  }
  
  protected void a(Graphics2D paramGraphics2D)
  {
    this.a = paramGraphics2D.getColor();
    this.b = paramGraphics2D.getStroke();
    this.c = paramGraphics2D.getPaint();
  }
  
  protected void c(ld paramld, Graphics2D paramGraphics2D)
  {
    if ((ld.E) || (j(paramld, paramGraphics2D))) {
      paramld.b(paramGraphics2D);
    }
  }
  
  protected void d(ld paramld, Graphics2D paramGraphics2D)
  {
    if ((ld.E) || (paramld.x() > 0)) {
      paramld.f(paramGraphics2D);
    }
  }
  
  protected void e(ld paramld, Graphics2D paramGraphics2D)
  {
    paramld.g(paramGraphics2D);
  }
  
  protected void b(Graphics2D paramGraphics2D)
  {
    paramGraphics2D.setColor(this.a);
    paramGraphics2D.setStroke(this.b);
    paramGraphics2D.setPaint(this.c);
  }
  
  protected boolean f(ld paramld, Graphics2D paramGraphics2D)
  {
    Paint localPaint = i(paramld, paramGraphics2D);
    if (!ld.E)
    {
      if (localPaint != null)
      {
        paramGraphics2D.setStroke(b(paramld, j(paramld, paramGraphics2D)));
        paramGraphics2D.setPaint(localPaint);
      }
    }
    else {
      return true;
    }
    return false;
  }
  
  protected boolean g(ld paramld, Graphics2D paramGraphics2D)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (!paramld.s())
      {
        Paint localPaint = h(paramld, paramGraphics2D);
        if (!bool)
        {
          if (localPaint != null) {
            paramGraphics2D.setPaint(localPaint);
          }
        }
        else {
          return true;
        }
        return false;
      }
    }
    return false;
  }
  
  protected Color a(ld paramld, boolean paramBoolean)
  {
    return paramld.q();
  }
  
  protected Stroke b(ld paramld, boolean paramBoolean)
  {
    return paramld.r();
  }
  
  protected Paint c(ld paramld, boolean paramBoolean)
  {
    return a(paramld, paramBoolean);
  }
  
  protected Color a(Color paramColor)
  {
    return new Color(Math.max((int)(paramColor.getRed() * 0.7D), 0), Math.max((int)(paramColor.getGreen() * 0.7D), 0), Math.max((int)(paramColor.getBlue() * 0.7D), 0), paramColor.getAlpha());
  }
  
  protected Color d(ld paramld, boolean paramBoolean)
  {
    Color localColor = paramld.o();
    if (localColor != null) {
      return paramBoolean ? a(localColor) : localColor;
    }
    return null;
  }
  
  protected Paint e(ld paramld, boolean paramBoolean)
  {
    boolean bool = ld.E;
    Color localColor1 = d(paramld, paramBoolean);
    if ((bool) || (localColor1 != null))
    {
      Color localColor2 = f(paramld, paramBoolean);
      if (!bool) {
        if (localColor2 != null) {
          return new GradientPaint((float)(paramld.a() + paramld.c() * 0.33D), (float)paramld.b(), localColor1, (float)(paramld.a() + paramld.c()), (float)paramld.b(), localColor2, true);
        }
      }
      return localColor1;
    }
    return null;
  }
  
  protected Color f(ld paramld, boolean paramBoolean)
  {
    Color localColor = paramld.p();
    if (localColor != null) {
      return paramBoolean ? a(localColor) : localColor;
    }
    return null;
  }
  
  protected abstract void a(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean);
  
  public void b(ld paramld, Graphics2D paramGraphics2D)
  {
    b(paramld, paramGraphics2D, true);
  }
  
  private void b(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (!paramld.D()) {
        return;
      }
      a(paramGraphics2D);
    }
    try
    {
      if (!bool)
      {
        if (!paramBoolean) {
          c(paramld, paramGraphics2D);
        }
        a(paramld, paramGraphics2D, paramBoolean);
      }
    }
    finally
    {
      b(paramGraphics2D);
    }
    if (!bool) {
      if (b(paramGraphics2D, paramBoolean)) {
        e(paramld, paramGraphics2D);
      }
    }
    if (a(paramGraphics2D, paramBoolean)) {
      d(paramld, paramGraphics2D);
    }
  }
  
  Paint h(ld paramld, Graphics2D paramGraphics2D)
  {
    boolean bool = j(paramld, paramGraphics2D);
    return c(paramGraphics2D) ? e(paramld, bool) : d(paramld, bool);
  }
  
  Paint i(ld paramld, Graphics2D paramGraphics2D)
  {
    boolean bool = j(paramld, paramGraphics2D);
    return c(paramGraphics2D) ? c(paramld, bool) : a(paramld, bool);
  }
  
  static boolean c(Graphics2D paramGraphics2D)
  {
    return kg.c(paramGraphics2D);
  }
  
  static boolean j(ld paramld, Graphics2D paramGraphics2D)
  {
    return ld.a(paramld, paramGraphics2D);
  }
  
  static boolean a(Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    return ld.a(paramGraphics2D, paramBoolean);
  }
  
  static boolean b(Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    return ld.c(paramGraphics2D, paramBoolean);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.n

 * JD-Core Version:    0.7.0.1

 */